import React from "react";
import { Drawer } from "antd";
import { Link } from "umi";

const DetailDrawer = ({ visible, onClose, detail = {} }) => {
  return (
    <Drawer
      open={visible}
      onClose={onClose}
      // placement='left'
    >
      <p>id:{detail.id}</p>
      <Link to="/home">link</Link>
      <p>城市:{detail.cityDesc}</p>
      <p>时间:{detail.date}</p>
      <p>备注:{detail.msg}</p>
    </Drawer>
  );
};

export default DetailDrawer;
